﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using System.Xml.Linq;
using System.Net;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using System.Windows.Media.Imaging;
using System.Windows.Media;

namespace RSSReader.MobileClient.Model
{
    class Article : INotifyPropertyChanged
    {
        public string Link { get; set; }
        public string UrlLink { get; set; }
        public string Title { get; set; }
        public string Body { get; set; }
        public string FeedOrigin { get; set; }
        public bool isRead { get; set; }
        public bool isFav { get; set; }
        public BitmapImage FImage { get; set; }
        public SolidColorBrush isReadBrush { get; set; }
        public string isFavImg { get; set; }
        public string Favit { get; set; }
        public SolidColorBrush isFavBrush { get; set; }
        public string FeedOriginUrl { get; set; }

        public event PropertyChangedEventHandler PropertyChanged;

        private void RaisePropertyChanged(string propertyName)
        {
            if (this.PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
